#coding;utf-8

import socket
import time

ip_port = (('123.207.170.247',8001))
#ip_port = (('144.168.62.173', 8000))

sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sk.connect(ip_port)
print 'connected!'
sk.sendall('aaa')
data = sk.recv(1024)
print 'receive:', data
# inp = raw_input('please input:')
# sk.sendall(inp)
# if inp == 'exit':
#     break

